<template>
  <div>
    <div class="wekend-title">
      周末去哪儿
    </div>
    <ul>
      <li class="wekend-item border-bottom"
        v-for="item in list" :key="item.id">
        <div class="item-wrap">
          <img class="item-img" :src="item.imgUrl" />
        </div>
        <div class="weekend-info">
          <p class="item-title">
            {{item.title}}
          </p>
          <p class="item-desc">
            {{item.desc}}
          </p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWekend',
  props: {
    list: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/mixis.styl'
  .wekend-title
    height: .8rem
    line-height: .8rem
    background: #f5f5f5
    text-indent: .2rem
  .item-wrap
    overflow: hidden;
    height: 0;
    padding-bottom: 37.4375%;
    .item-img
      width: 100%
  .weekend-info
    padding: .2rem
    .item-title
      font-size:.32rem
      height: .5rem
      ellipsis()
    .item-desc
      color: #ccc
      ellipsis()
</style>
